package com.baitengsoft.patentapimonitor.api.dao;

import com.baitengsoft.patentapimonitor.api.entity.WebMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Admin on 2017/12/19.
 */
@Mapper
public interface WebMenuDao extends BasetkRepository<WebMenuEntity> {

    List<WebMenuEntity> selectOneLevelMenuByUserId(Integer userId);

    List<WebMenuEntity> selectTwoLevelMenuByUserIdAndParentId(@Param("userId") Integer userId,@Param("parentId") Integer parentId);

}
